#include "mainwindow.h"

#include <QtGui/QApplication>
#include <QResource>
#ifdef Q_OS_SYMBIAN
#include <eikenv.h>
#include <coemain.h>
#include <aknappui.h>
#endif

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

#ifdef Q_OS_SYMBIAN
    CAknAppUi *aknAppUi = dynamic_cast<CAknAppUi *>(CEikonEnv::Static()->AppUi());
    if (aknAppUi)
    {
        aknAppUi->SetOrientationL(CAknAppUi::EAppUiOrientationPortrait);
    }
#endif

    QString path = QCoreApplication::applicationDirPath() + "\\Resources\\Image.rcc";
    path.replace("/","\\");

#ifdef Q_OS_SYMBIAN
    QResource::registerResource(path);
#endif

    MainWindow mainWindow;
    mainWindow.showFullScreen();

    return app.exec();
}
